# [0,1,2,1,0,0]
#  0 1 2 3 4 5
l=[0,1,2,1,0,0]
a=1
while a<len(l):
    # print(a,': ',l[a])
    # print(f'{a}: {l[a]}')
    # f-string
    print(f'学号:{a} 迟到次数:{l[a]}')
    a+=1